<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<#include "/common/resources.ftl"/>
<script type="text/javascript">
	function m_submit(){
		window.saveOrEditForm.submit();
	}
	
	function m_back(){
		window.location.href = 'manage';
	}
	<#if errorMsg?exists >alert('${errorMsg}');</#if>
	
	$(function(){
		var mids = '${model.propertyIds}';
		if(mids!=''){
			$('#propertyIds').combobox('setValues',mids.split(','));
		}
	})
</script>
</head>
<body>
  <form action="${ctx}/xf/casestaffinfo/save_edit" method="post" class="loan_list_form" name="saveOrEditForm">
  <input type="hidden" name="id" value="<#if model?exists >${model.id}</#if>" />
  <div class="fm_sty" style="margin: 20px 0px 0px;">
	       	<!-- div class="ipt_line">
				<span class="ipt_title">创建时间</span>
				<input type="text" name="createTime" value="<#if model?exists >${model.createTime?string("yyyyMMdd HH:mm:ss")}</#if>" class="easyui-datebox" panelWidth="255" style="height:39px;"/>
			</div>
	       	<div class="ipt_line">
				<span class="ipt_title">更新时间</span>
				<input type="text" name="updateTime" value="<#if model?exists >${model.updateTime?string("yyyyMMdd HH:mm:ss")}</#if>" class="easyui-datebox" panelWidth="255" style="height:39px;"/>
			</div -->
	       	<div class="ipt_line">
				<span class="ipt_title">手机号码</span>
				<input type="text" name="mobile" value="<#if model?exists >${model.mobile}</#if>" class="ipt_226" /> <div style="display:inline-table;color:#cccccc">用作登录名</div>
			</div>
	       	<div class="ipt_line">
				<span class="ipt_title">登录密码</span>
				<input type="password" name="password" value="<#if model?exists >${model.password}</#if>" class="ipt_226" />
			</div>
	       	<div class="ipt_line">
				<span class="ipt_title">姓名</span>
				<input type="text" name="name" value="<#if model?exists >${model.name}</#if>" class="ipt_226" />
			</div>
	       	<div class="ipt_line">
				<span class="ipt_title">所属公司</span>
				<input type="text" name="company" value="<#if model?exists >${model.company}</#if>" class="ipt_226" />
			</div>
	       	<div class="ipt_line">
				<span class="ipt_title">所属部门</span>
				<input type="text" name="department" value="<#if model?exists >${model.department}</#if>" class="ipt_226" />
			</div>
	       	<div class="ipt_line">
				<span class="ipt_title">邮箱地址</span>
				<input type="text" name="email" value="<#if model?exists >${model.email}</#if>" class="ipt_226" />
			</div>
	       	<div class="ipt_line">
				<span class="ipt_title">驻场楼盘</span>
				<input type="text" name="propertyIds" id="propertyIds" value="<#if model?exists >${model.propertyIds}</#if>" class="easyui-combobox" style="width:264px;height:39px;" data-options="valueField:'id',textField:'name',url:'${ctx}/xf/premises/combo',multiple:true"/>
			</div>
	       	<div class="ipt_line">
				<span class="ipt_title">案场人员状态</span>
				<input type="text" id="staffStatus_id" name="staffStatus" style="height:39px;width:266px;" yixun_combobox="case_staff_status" value="<#if model?exists >${model.staffStatus}</#if>"/>
			</div>
      <div class="ipt_line_long">
            <button class="red_100" onclick="javascript:m_submit();return false;">保存</button>
            <button class="red_100" onclick="javascript:m_back();return false;" style="background-color:#74D86A">返回</button>
      </div>
	</div>
	</form>
</body>
</html>
